import java.util.*;
public class LinkListDemo {
	public static void main(String argv[]){
		System.out.println("demo LinkedList");
		LinkedList l = new LinkedList();
		l.add(new Object());
		l.add("salut!");
		
		System.out.println("lista cu toate elementele");
		ListIterator li = l.listIterator(0);
		while(li.hasNext())
			System.out.println(li.next());
		if(l.indexOf("hello")<0)
			System.err.println("nu merge!");
		else
			System.err.println("mergeeee!!!");
	}

}
